//
//  videodetTableViewCell.m
//  iNews
//
//  Created by lanou3g on 14-12-9.
//  Copyright (c) 2014年 张在青. All rights reserved.
//

#import "videodetTableViewCell.h"

@implementation videodetTableViewCell

-(void)dealloc{
    [_imagevw release];
    [_label release];
    
    [super dealloc];

}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
      
        [self addviews];
    }
    return self;
}
-(void)addviews{

    //初始化一个iamge
    self.imagevw = [[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 50, 44)] autorelease];
    
    [self.contentView addSubview:self.imagevw];
    
    //初始化一个label
    self.label = [[[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxY(self.imagevw.frame) + 10, 0,[UIScreen mainScreen].bounds.size.width - CGRectGetWidth(self.imagevw.frame),CGRectGetHeight(self.imagevw.frame) )] autorelease];
    
    self.label.font = [UIFont systemFontOfSize:13];
    self.label.numberOfLines = 0;
    [self.contentView addSubview:self.label];

}



- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
